<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
    \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
    <head>
        <title>jsonp Test</title>
</head>
<body>

<select>
<option value="file1">file1</option>
<option value="file2">file2</option>
</select>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type='text/javascript'>
var callValue="";
$("select").change(function(){
$("select").each(function(){
callValue = $(this).children(":selected").val();
});
callFunc();
});
callFunc = function(){
$.ajax({
url: 'http://kiyoto777.web.fc2.com/test/test001.js',
type: "GET",
dataType: "jsonp",
jsonp:false ,
jsonpCallback:"callallback",
success: function(data){
console.log("JSONP success!");
console.log(eval("data."+callValue+"[0].name")); //eval
},
error: function(){
console.log("JSONP error");
alert("JSONP error");
}
});
}

</script>

</body>
</html>
